<#-- ajax 分页标签 -->
<#macro page1 gpage objID callback tableContainer pageContainer>
     <script>
		table.init('${tableContainer}', {
			height : 'full-405',
			limit : 100
		});
		function getChecked(tableId){
			var checkStatus = table.checkStatus(tableId);
			return checkStatus.data;
		}		
		var count = '${gpage.totalCount?string}'.replace(",","");
		var curr = '${gpage.pageNo?string}';
		curr = parseInt(curr);
		var pageSize = '${gpage.pageSize?number}';
		pageSize = parseInt(pageSize);
		var arrs = new Array();
		<#list gpage.pageSizes as gp>
			arrs.push(parseInt('${gp}'));
		</#list>
		laypage.render({
			elem : '${pageContainer}',
			count : parseInt(count),
			limits : arrs,
			limit:pageSize,
			layout : [ 'count', 'prev', 'page', 'next', 'limit', 'refresh','skip' ],
			curr:parseInt(curr),
			jump : function(obj) {
				$("#${objID}").attr("pageno",obj.curr);
				$("#${objID}").attr("pagesize",obj.limit);
				$("#${objID}").attr("pagenonow","1");
				if(obj.curr != curr ||  pageSize != obj.limit){
					eval('${callback}');
				}
			}
		});
</script>
</#macro>